import {get, post } from "./http";

// 获取登陆用户信息
export const getUserInfo = (data) => get('/api/user/info', data)

// 医生首页数据
export const doctorHomeData = () => get('/api/home/doctor/data', '')

// 医生查看任务列表
export const doctorWorkList = (data) => get('/api/work/query', data)

// 查询字典  用户反馈的tag 部门:depType 任务类型:workType 癌症类型:cancerType 药品类型:drugType
export const queryDic = (data) => get('/api/dic/data/' + data, '')

// 标记任务或者修改任务
export const tagWork = (data) => post('/api/work/mark', data)

// 查询用户流程状态数据
export const queryProcess = (data) => get('/api/process/user/query', data)

// 查询进程最新的单条记录
export const queryOneReport = (data) => get('/api/process/data/one', data)

// 七牛上传图片
export const upload = () => get('/api/qiniu/upload/token', '')

// 进程一 保存
export const saveProcessOne = (data) => post('/api/process/data/option', data)

// 查询进程的最近10条记录
export const queryNewReport = (data) => get('/api/process/data/list', data)

// 患者反馈查询（最新一条记录）
export const queryPatientFeedback = (data) => get('/api/process/patient/feedback/query', data)

// 【日历】查房备注或者取消查房
export const queryRemark = (data) => post('/api/work/remark', data)

// 【日历】查询任务列表（医生查房）
export const queryDoctorWork = (data) => get('/api/work/doctor/query', data)

// 【数据统计】医生数据统计
export const doctorTj = () => get('/api/count/data/doctor', '')

// 患者首页数据
export const patientHomeData = () => get('/api/home/patient/data', '')